<%
if(user) { // authorized users only
println """<a href="${users.createLogoutURL(request.requestURI)}">logout</a>"""
} else {
  redirect "/authorized/test"
}
%>
